Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODPart


WriteActionState

The WriteActionState method should write the undo action data into the specified storage-unit view object.

void WriteActionState (
                     in ODActionData actionState, 
                     in ODStorageUnitView storageUnitView);
actionState
A byte array whose buffer contains the data previously logged by this part to allow it to redo the action.
storageUnitView
A reference to a storage-unit view object where the action data is to be written to storage.
DISCUSSION
OpenDoc calls this method when it writes the undo action data to persistent storage. Your part's WriteActionState method will not be called in OpenDoc 1.0 due to the lack of a persistent undo model; it is provided here for compatibility with future versions of OpenDoc.

OVERRIDING
When you subclass ODPart, you can override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely.

EXCEPTIONS
kODErrDoesNotUndo
The specified action is not an undo action of this part.
SEE ALSO
The ODActionData type (page 898).
The ODPart::DisposeActionState method (page 499).
The ODPart::ReadActionState method (page 536).
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Implementing Undo" on page 258 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help